import request from '@/utils/request'

// 查询违规采集列表
export function getMonthlyViolationCounts(query) {
  return request({
    url: '/violation/collectionRecord/monthlyCounts',
    method: 'get',
    params: query
  })
}

// 查询违规采集列表
export function listCollectionRecord(query) {
  return request({
    url: '/violation/collectionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询违规采集详细
export function getCollectionRecord(collectionId) {
  return request({
    url: '/violation/collectionRecord/' + collectionId,
    method: 'get'
  })
}

// 新增违规采集
export function addCollectionRecord(data) {
  return request({
    url: '/violation/collectionRecord',
    method: 'post',
    data: data
  })
}

// 修改违规采集
export function updateCollectionRecord(data) {
  return request({
    url: '/violation/collectionRecord',
    method: 'put',
    data: data
  })
}

// 删除违规采集
export function delCollectionRecord(collectionId) {
  return request({
    url: '/violation/collectionRecord/' + collectionId,
    method: 'delete'
  })
}

  // 获取违规类型列表
export function violationTypeList() {
  return request({
    url: '/violation/collectionRecord//violationTypeList',
    method: 'get'
  })
}
